package com.barbarosso.video.view.components {
	import flash.display.MovieClip;
	import flash.media.Video;		

	/**
	 * @author barbarosso
	 */
	public class VideoScreen extends MovieClip {
		
		private var _video 			: Video;
		private var _videoWidth 	: int;

		public function VideoScreen() {
			createVideo();
		}
		
		private function createVideo() : void {
			var rect : MovieClip = new MovieClip();
			rect.graphics.beginFill(0xff00ff);
			rect.graphics.drawRect(0, 0, 320, 240);
			
			this.addChild(rect);
			_video = new Video();
			rect.addChild(_video);
			
		}

		public function set videoWidth ( value : int ) : void {
			_videoWidth = value ;
		}
		public function get videoWidth (  ) : int {
			return _videoWidth  ;
		}
		
		/*
		 * setters and getters methods ----------------------------------------------
		 */ 
		public function get video (  ) : Video {
			return _video  ;
		}
	}
}
